/**
 * Created by zhangligang
 * Email: tzhang2450@163.com
 * Date: 2018/10/6
 * Time: 13:18
 */
$(function(){
    sendAjax('/v1/contract/detail.json', 'get', {id:contract_id}, function(json){
        var contract = json.body.data;
        var attachment = JSON.parse(contract.attachment);
        $('.contract-name').text(contract.realname);
        $('.contract-identity-front img').attr('src', config.domain+config.pictures+attachment.identity_front);
        $('.contract-identity-back img').attr('src', config.domain+config.pictures+attachment.identity_back);
    });
});